
function drawPath(pathTable, disp_loc, r, g, b)  
     
        k = length(pathTable);
        [x1,y1]=find_coordinates(pathTable(1), disp_loc);
        for i = 2:k
           [x2,y2]=find_coordinates(pathTable(i), disp_loc);
            line([x1 x2], [y1 y2], 'LineStyle','-', 'Color',[r,g,b]);
            x1=x2;
            y1=y2;
        end   
end